#ifndef __CONFIG_FILE_H
#define __CONFIG_FILE_H

#include <stdio.h>
#include <string.h>
#include <jansson.h>

#define MAX_INPUT_SIZE 1024

#define TRUE 1
#define FALSE 0

char *config_file_text;

int v_grid; //turn off/on grid
int v_color; // color of calendar
int v_month; // turn off/on month
int v_pos_x; //calendar position x
int v_pos_y; //calendar position y
int v_font_size; //font size
int v_year; // turn on/off year
int v_width; // width of calendar in pix
const char *v_bg_path; // background path to image
const char *v_font_path; // font path to use


json_t			*config_root,*config_value;	//parenth tree of objects
json_error_t	config_file_error;

int load_config_file( const char *);
void config_values_reset();
int config_gcollector();

#endif
